#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    int a = n / 100;
    for (int i = 0; i < a; i++)
    {
        printf("B");
    }
    int b = n / 10;
    int c = b % 10;
   for (int i = 0; i < c; i++)
    {
        printf("S");
    }
   int count = n % 10;
    for (int i = 1; i <= count; i++)
    {
        printf("%d",i);
    }
    return 0;
}